<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 30 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */
 .style30p569{position:absolute;left:223px;top:767px}

 /* Position Styles */
 .ts30p0{position:absolute;left:106px;top:97px;}
 .ts30p1{position:absolute;left:352px;top:97px;}
 .ts30p3{position:absolute;left:672px;top:97px;}
 .ts30p7{position:absolute;left:106px;top:113px;}
 .ts30p8{position:absolute;left:706px;top:1026px;}
 .ts30p9{position:absolute;left:331px;top:1044px;}
 .ts30p13{position:absolute;left:106px;top:146px;}
 .ts30p14{position:absolute;left:106px;top:164px;}
 .ts30p16{position:absolute;left:106px;top:183px;}
 .ts30p18{position:absolute;left:106px;top:201px;}
 .ts30p19{position:absolute;left:106px;top:221px;}
 .ts30p21{position:absolute;left:106px;top:239px;}
 .ts30p23{position:absolute;left:106px;top:257px;}
 .ts30p25{position:absolute;left:106px;top:275px;}
 .ts30p26{position:absolute;left:106px;top:293px;}
 .ts30p28{position:absolute;left:106px;top:311px;}
 .ts30p29{position:absolute;left:106px;top:329px;}
 .ts30p31{position:absolute;left:106px;top:347px;}
 .ts30p33{position:absolute;left:106px;top:366px;}
 .ts30p36{position:absolute;left:106px;top:384px;}
 .ts30p40{position:absolute;left:106px;top:402px;}
 .ts30p42{position:absolute;left:106px;top:420px;}
 .ts30p44{position:absolute;left:106px;top:438px;}
 .ts30p46{position:absolute;left:106px;top:456px;}
 .ts30p48{position:absolute;left:106px;top:474px;}
 .ts30p50{position:absolute;left:106px;top:492px;}
 .ts30p52{position:absolute;left:106px;top:511px;}
 .ts30p55{position:absolute;left:106px;top:529px;}
 .ts30p57{position:absolute;left:106px;top:547px;}
 .ts30p59{position:absolute;left:106px;top:565px;}
 .ts30p61{position:absolute;left:106px;top:583px;}
 .ts30p63{position:absolute;left:106px;top:601px;}
 .ts30p65{position:absolute;left:106px;top:619px;}
 .ts30p67{position:absolute;left:106px;top:638px;}
 .ts30p68{position:absolute;left:106px;top:656px;}
 .ts30p69{position:absolute;left:106px;top:675px;}
 .ts30p70{position:absolute;left:106px;top:693px;}
 .ts30p72{position:absolute;left:106px;top:711px;}
 .ts30p74{position:absolute;left:106px;top:730px;}
 .ts30p75{position:absolute;left:380px;top:747px;}
 .ts30p77{position:absolute;left:613px;top:981px;}

 /* Font Styles */
 .ft0p30{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p30{font-weight:normal;}
 .ft2p30{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p30{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p30{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p30{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft6p30{font-style:normal;font-weight:normal;font-size:16px;font-family:"courier new",courier,monospace;color:#000000;}
 .ft7p30{font-style:normal;font-weight:bold;font-size:16px;font-family:helvetica,arial,sans-serif;color:#000000;}
 .ft8p30{font-style:italic;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}

 /* Background Style */
 .styleBackground30{position:absolute;left:97px;top:219px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index29.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;30 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index31.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground30><img src="./background30.png" width="633" height="836" border="0" alt=""></div>
<div class=style30p569><img src="./image30_569.png" width="390" height="230" border="0" alt=""></DIV>
<div class=ts30p0><span class="ft0p30"> </span></div>
<div class=ts30p1><span class="ft0p30">Gravitybox Schedule Primer<span class="ft1p30"> </span></span></div>
<div class=ts30p3><span class="ft0p30">Page 28&nbsp; </span></div>
<div class=ts30p7><span class="ft2p30"> </span></div>
<div class=ts30p8><span class="ft3p30"> </span></div>
<div class=ts30p9><span class="ft4p30">1998&#45;2004 Gravitybox Software LLC<span class="ft3p30"> </span></span></div>
<div class=ts30p13><span class="ft5p30">Code to block out all weekend days may be constructed with a simple loop. The </span></div>
<div class=ts30p14><span class="ft5p30">following code loops through all the dates on a schedule and defines the weekend days </span></div>
<div class=ts30p16><span class="ft5p30">as NoDrop zones. </span></div>
<div class=ts30p18><span class="ft5p30"> </span></div>
<div class=ts30p19><span class="ft6p30">Dim i As Long </span></div>
<div class=ts30p21><span class="ft6p30">Dim lLoopCount As Long </span></div>
<div class=ts30p23><span class="ft6p30">Dim dtCurDate As Date </span></div>
<div class=ts30p25><span class="ft6p30"> </span></div>
<div class=ts30p26><span class="ft6p30">&nbsp; 'Loop through how many days? </span></div>
<div class=ts30p28><span class="ft6p30">&nbsp; lLoopCount = DateDiff(&#34;d&#34;, Schedule1.MinDate, </span></div>
<div class=ts30p29><span class="ft6p30">Schedule1.MaxDate) </span></div>
<div class=ts30p31><span class="ft6p30">&nbsp;&nbsp; </span></div>
<div class=ts30p33><span class="ft6p30">&nbsp; 'Perform loop </span></div>
<div class=ts30p36><span class="ft6p30">&nbsp; For i = 0 To lLoopCount &#45; 1 </span></div>
<div class=ts30p40><span class="ft6p30">&nbsp;&nbsp;&nbsp;&nbsp; </span></div>
<div class=ts30p42><span class="ft6p30">&nbsp;&nbsp;&nbsp; 'Get the current date </span></div>
<div class=ts30p44><span class="ft6p30">&nbsp;&nbsp;&nbsp; dtCurDate = DateAdd(&#34;d&#34;, i, Schedule1.MinDate) </span></div>
<div class=ts30p46><span class="ft6p30">&nbsp;&nbsp;&nbsp;&nbsp; </span></div>
<div class=ts30p48><span class="ft6p30">&nbsp;&nbsp;&nbsp; 'If the date is Saturday (Weekday function = 7) </span></div>
<div class=ts30p50><span class="ft6p30">&nbsp;&nbsp;&nbsp; 'or Sunday (Weekday function = 1) </span></div>
<div class=ts30p52><span class="ft6p30">&nbsp;&nbsp;&nbsp; 'Then add it to our no drop collection </span></div>
<div class=ts30p55><span class="ft6p30">&nbsp;&nbsp;&nbsp; If (Weekday(dtCurDate) = 1) Or _ </span></div>
<div class=ts30p57><span class="ft6p30">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (Weekday(dtCurDate) = 7) Then </span></div>
<div class=ts30p59><span class="ft6p30">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Call Schedule1.NoDropAreas.Add(dtCurDate) </span></div>
<div class=ts30p61><span class="ft6p30">&nbsp;&nbsp;&nbsp; End If </span></div>
<div class=ts30p63><span class="ft6p30">&nbsp;&nbsp;&nbsp;&nbsp; </span></div>
<div class=ts30p65><span class="ft6p30">&nbsp; Next I<span class="ft5p30"> </span></span></div>
<div class=ts30p67><span class="ft5p30"> </span></div>
<div class=ts30p68><span class="ft5p30"> </span></div>
<div class=ts30p69><span class="ft5p30">When the schedule is displayed and these dates come into the viewable window, they </span></div>
<div class=ts30p70><span class="ft5p30">will be a special color defined by the color of the added NoDrop object. This will allow </span></div>
<div class=ts30p72><span class="ft5p30">the user to easily see that this is not a valid section of the schedule.&nbsp; </span></div>
<div class=ts30p74><span class="ft5p30"> </span></div>
<div class=ts30p75><span class="ft7p30">Figure 1.5 </span></div>
<div class=ts30p77><span class="ft8p30"> </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
